home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IE Sort Favorites.xpl < prev    next >
Text File  |  2003-11-19  |  2KB  |  62 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Internet Explorer\Troubleshooting"
  5. "NAME"="Sort Favorites Menu"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Sort "Favorites" alphabetically"
  9. "DESCRIPTION 1"="Internet Explorer allows you do use your own sort order inside the Favorites menu."
  10. "DESCRIPTION 2"="Although this is a good feature, you might want to have an alphabetically order."
  11. "DESCRIPTION 3"="If you want to order a single folder inside the Favorites menu, just righ-click any item in this folder with the right mouse-button and select "Sort by names" from the appearing menu."
  12. "DESCRIPTION 4"="If you want ALL items in ALL folders of the Favorites menu sorted, click this button."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to Adam Kautz [akautz@hotmail.com] for the idea!"
  17.  
  18. sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Favorites"
  19.  
  20. Sub Plugin_Initialize 
  21. End Sub
  22.  
  23. Sub Plugin_CheckData(ElementIndex)
  24. End Sub
  25.  
  26. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  27.  if ElementIndex=1 then 
  28.     Call DoWork(sP)
  29.  
  30.     Call MsgInformation("Your Favorites are now sorted")
  31.  end if
  32.  
  33. End Sub
  34.  
  35. Sub DoWork(path)
  36.  Dim aryPaths()
  37.  
  38.  i=RegEnumPaths(path)
  39.  if i>0 then
  40.     ReDim aryPaths(i)
  41.  
  42.     for l=1 to i
  43.        aryPaths(l)=RegEnumElement(l)
  44.     Next
  45.  
  46.     for l=1 to i
  47.         Call DoWork(path & "\" & aryPaths(l))
  48.         'Call MsgInformation(path & "\" & aryPaths(l))
  49.         Call RegDeletePath(path & "\" & aryPaths(l))
  50.     next 
  51.  end if
  52.  
  53.  if RegValueExists(path & "\Order") then
  54.     Call RegDeleteValue(path & "\Order")
  55.  end if
  56.  
  57. End Sub
  58.  
  59.  
  60. Sub Plugin_Terminate 
  61. End Sub
  62.